#ifndef SEQIOT_DLT645_H
#define SEQIOT_DLT645_H

#include "config.h"
#include "value.h"

//智能电表
void dlt645_decode(device_t *device, thing_model_t *tag, const unsigned char *dest, value_t *value);

int dlt645_collect(channel_t *channel, device_t *device, thing_model_t *tag);

int dlt645_init(channel_t *channel, device_t *device);

//智能电表数据采集计划
void sched_dlt645_device(channel_t *channel, data_catalog_e catalog, device_t *device);

void sched_dlt645_channel(channel_t *channel, data_catalog_e catalog);

void sched_dlt645_catalogs(channel_t *channel, seqiot_t *seqiot);

void sched_dlt645(channel_t *channel, seqiot_t *seqiot);

#endif //SEQIOT_DLT645_H
